<%@page import="multiface.awwadco.jpa.Prodotto"%>
<%@page import="multiface.awwadco.jpa.Utente"%>
<%
    Utente ut = (Utente) session.getAttribute("admin");
    if (ut == null) {
        response.sendRedirect(multiface.web.util.ServletUtils.getBaseUrl(request) + "/admin/index.jsp?err=y");
    }
%>

<%
    int pid = Integer.parseInt(request.getParameter("pid"));
%>

<div class="title">Commands</div>
<ul>
    <li id="new_prod"><a href="javascript:save('prod','ModifyProdottoServlet');">Save Product</a></li>
    <li id="new_prod"><a href="javascript:open('image_prod.jsp',{pid:<%=pid%>});">Product Image</a></li>
</ul>

<ul>
    <li id="mod_prod"><a href="javascript:open('mod_prod.jsp',{pid:<%=pid%>});">View Info</a></li>
    <li id="view_part"><a href="javascript:open('view_part.jsp',{pid:<%=pid%>},'mod_prod.jsp');">View Parts</a></li>
    <li id="view_cat"><a href="javascript:open('view_cat_prod.jsp',{pid:<%=pid%>},'mod_prod.jsp');">View Categories</a></li>
</ul>